import service from '@/utils/request'

export function getList(params) {
  return service({
    url: '/umsUser/list',
    method: 'get',
    params
  })
}
export function getForm(id) {
  return service({
    url: '/umsUser/queryById?userid='+id,
    method: 'get'
  })
}


export function save(params) {
  return service({
    url: '/umsUser/save',
    method: 'post',
    params
  })
}


export function update(params) {
  return service({
    url: '/umsUser/update',
    method: 'post',
    params
  })
}
export function deleteById(id) {
  return service({
    url: '/umsUser/deleteById?userid='+id,
    method: 'get',
  })
}
export function initEdit() {
  return service({
    url: '/umsUser/initEdit',
    method: 'get',
  })
}
